const router = require("koa-router")();
const DB = require("../../module/db.js");

/**
 * 获取网站系统设置信息
 * api/setting/getSetting
*/
router.get("/getSetting", async (ctx) => {
  let result = await DB.find("setting", {});
  ctx.body = {
    code: 200,
    data: result
  }
});
module.exports=router.routes();